module.exports = {
	computed: {
		hasLogin() {
			/**
			 * 用来监听用户是否是登录状态
			 */
			if (this.$store.getters.token === "") {
				let token = uni.getStorageSync("token");
				if (token === "") {
					return false
				}
			}
			return true;
		}
	},
	methods: {
		goToLoginPage() {
			uni.navigateTo({
				url: "/pages/login/login"
			})
		}
	},
}
